package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Role role);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    void updateByPrimaryKey(Role role);

    List<Role> queryForList(QueryObject qo);

    List<Role> queryByEmployeeid(Long employeeid);

    void delectRelation(Long id);

    void insertRelation(@Param("roleid") Long id, @Param("permissionid") Long permissionid);

    List<String> selectSnByEmpid(Long id);
}